package com.yc.common.expection;


import com.yc.common.enums.ResultCode;

import java.io.Serializable;

/**
 * @author zhuzy
 * @version 1.0
 * @description BusinessException 业务异常
 * @create 2022/7/11 10:16
 */
public class BusinessException extends BaseException implements Serializable {
    private static final long serialVersionUID = 1L;
    public BusinessException(String msg) {
        this.msg = msg;
        this.code = ResultCode.BUSINESS_ERROR.getCode();
    }

    public BusinessException() {
        this.msg = ResultCode.BUSINESS_ERROR.getMsg();
        this.code = ResultCode.BUSINESS_ERROR.getCode();
    }
}
